package com.bbh.plugin.single.privilege.core.repository;

import java.util.List;
import java.util.Map;

import com.bbh.plugin.single.privilege.core.vo.tree.OrganizationVo;
import com.bbh.plugin.single.privilege.core.vo.tree.ZTreeNoneAjaxVo;
import org.springframework.boot.config.mybatis.MyBatisRepository;

import com.bbh.plugin.single.privilege.core.entity.Organization;

import tk.mybatis.mapper.common.Mapper;

@MyBatisRepository
public interface OrganizationMapper extends Mapper<Organization> {

	List<OrganizationVo> findList(Map<String, Object> params);

	List<OrganizationVo> findAllList(Map<String, Object> params);

	/**
	 * 级联查询下级
	 * @param params  id:id
	 * @return
	 */
	List<ZTreeNoneAjaxVo> selectTreeOrganizationChildren(Map<String,Object> params);
}